package com.hs.teachsystem.controller;

import com.hs.teachsystem.TalkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created by MaiBenBen on 2017/7/14.
 */
@Controller
@RequestMapping("/talk")
public class TalkController extends MyController{
    @Autowired
    private TalkService talkService;
    /**
     * 开启聊天
     * @return
     */
    @RequestMapping("/startTalk")
    public Object startTalk(){
        Map<String,Object> result=null;
        return result;
    }

    /**
     * 一段时间就自动查询表，返回消息
     * @return
     */
    @RequestMapping("/queryTalkBySecond")
    public Object queryTalkBySecond(){
        Map<String,Object> result=null;
        return result;
    }

    /**
     * 查询消息历史纪录
     * @return
     */
    @RequestMapping("/queryTalkMessage")
    public Object queryTalkMessage(){
        Map<String,Object> result=null;
        return result;
    }
}
